package com.dex4d.ui.main.socket;

import com.google.gson.annotations.Expose;

import java.util.ArrayList;
import java.util.List;

/**
 * 作者    LiQingyi
 * 时间    2018/10/31 19:31
 * 文件    dex4d-android
 * 描述
 */
public class RPCRequest {

    /**
     * id : getPool
     * method : marketcap_subscribe
     * params : ["getPool"]
     */

    public String id;
    public String method;
    public List<String> params;

    @Expose
    public String tag;

    public RPCRequest(String id) {
        this.id = id;
        this.method = "marketcap_subscribe";
        this.params = new ArrayList<>();
        this.tag = id;
        this.params.add(id);
    }

    public RPCRequest() {
        params = new ArrayList<>();
    }
}
